/// 用户等级信息
class SysUserLevelEntity {
  /// 主键ID
  final int? id;
  /// 用户等级名称
  final String? levelName;
  /// 该等级最少积分
  final int? min;
  /// 用户等级描述
  final String? levelDescribe;

  SysUserLevelEntity({
    this.id,
    this.levelName,
    this.min,
    this.levelDescribe,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (id != null) data['id'] = id;
    if (levelName != null) data['levelName'] = levelName;
    if (min != null) data['min'] = min;
    if (levelDescribe != null) data['levelDescribe'] = levelDescribe;
    return data;
  }

  factory SysUserLevelEntity.fromJson(Map<String, dynamic> json) {
    return SysUserLevelEntity(
      id: json['id'],
      levelName: json['levelName'],
      min: json['min'],
      levelDescribe: json['levelDescribe'],
    );
  }
}